/**
 * Wihidum - Efficient Broker Hierarchy for Publish Subscribe Middleware
 *
 * License      :   Apache License 2.0
 * Home Page    :   http://code.google.com/p/wihidum/
 * Mailing List :   wihidum@googlegroups.com
 */

package lk.mrt.cse.wihidum.storage;

import javax.persistence.*;

@Entity
public class BrokerSubscription
{
    private Long id;
    private String fromBrokerID;
    private String fromBrokerAddress;
    private String toBrokerID;
    private String toBrokerAddress;
    private String topic;

    @Id
    @GeneratedValue (strategy = GenerationType.IDENTITY)
    public Long getId ()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public String getFromBrokerID()
    {
        return fromBrokerID;
    }

    public void setFromBrokerID(String fromBrokerID)
    {
        this.fromBrokerID = fromBrokerID;
    }

    public String getFromBrokerAddress()
    {
        return fromBrokerAddress;
    }

    public void setFromBrokerAddress(String fromBrokerAddress)
    {
        this.fromBrokerAddress = fromBrokerAddress;
    }

    public String getToBrokerID()
    {
        return toBrokerID;
    }

    public void setToBrokerID(String toBrokerID)
    {
        this.toBrokerID = toBrokerID;
    }

    public String getToBrokerAddress()
    {
        return toBrokerAddress;
    }

    public void setToBrokerAddress(String toBrokerAddress)
    {
        this.toBrokerAddress = toBrokerAddress;
    }

    public String getTopic()
    {
        return topic;
    }

    public void setTopic(String topic)
    {
        this.topic = topic;
    }
}
